import { GTextArea } from "../../../../com/mui/controls/GTextArea";
import { GTextFormat } from "../../../common/GTextFormat";
import { FontUtil } from "../../../common/font/FontUtil";
import { ResouceConst } from "../../../component/gconst/ResouceConst";
import { ScrollPolicy } from "../../../../fl/controls/ScrollPolicy";
import { GUIScrollBar } from "../../../../com/mui/controls/GUIScrollBar";
//class MTextArea
    
    export  class MTextArea extends GTextArea
    {
        constructor()
        {
            super();
            this.condenseWhite = true;
            this.editable = true;
            this.setStyle("textFormat", new GTextFormat(FontUtil.songtiName, 12, 16777215, null, null, null, null, null, null, null, null, 5, 5));
            this.setStyle("upSkin", ResouceConst.getScaleBitmap("WindowCenterB"));
            this.setStyle("focusRectSkin", new Object /* flash.display.Bitmap */());
            this.verticalScrollPolicy = ScrollPolicy.OFF;
            this.horizontalScrollPolicy = ScrollPolicy.OFF;
            var loc1=new GUIScrollBar();
            loc1.styleName = "ScrollBarNormal";
            loc1.scrollTarget = this.textField;
            loc1.setSize(15, 170);
            loc1.move(268, 0);
            this.addChild(loc1);
            this.setSize(430, 170);
            return;
        }
    }
